import {
	request
} from './index.js'


// 
export function wxLogin(data) {
	return request.post('/user/wxapplogin', data)
}
// 首页bannar
export function getbanner(data) {
	return request.get('/zgyb.config/slide', data)
}

// 产品中心 
export function getcategory(data) {
	return request.get('/zgyb.index/category', data)
}

// 一级分类 
export function zgybindexfirst(data) {
	return request.get('/zgyb.index/first', data)
}

// 汇总他  
export function summarycategory(data) {
	return request.get('/zgyb.summary/category', data)
}

// 列表 
export function summarylists(data) {
	return request.get('/zgyb.summary/lists', data)
}


// 规格 
export function searchspec(data) {
	return request.get('/zgyb.search/spec', data)
}
// 厚度 
export function searchthickness(data) {
	return request.get('/zgyb.search/thickness', data)
}
// 颜色 zgyb.search/typeb
export function searchcolor(data) {
	return request.get('/zgyb.search/typeb', data)
}

// 光泽度  zgyb.search/gloss
 export function searchgloss(data) {
 	return request.get('/zgyb.search/gloss', data)
 }

// 色类 zgyb.search/typee
export function searchColorType(data) {
 	return request.get('/zgyb.search/typee', data)
 }

// 适用 zgyb.search/
export function searchapply(data) {
 	return request.get('/zgyb.search/typec', data)
}

// 工艺 zgyb.search/technology
export function searchtechnology(data) {
  	return request.get('/zgyb.search/technology', data)
 }

// 品类 zgyb.search/typed
export function searchcategory(data) {
  	return request.get('/zgyb.search/typed', data)
 }
// 筛选列表 https://zgyb.search/lists
export function searchlists(data) {
  	return request.get('/zgyb.search/lists', data)
 }
  
 // 视频专区 
export function videozone(data) {
  	return request.get('/zgyb.video/zone', data)
 }
 
 // 视频列表
export function videolists(data) {
  	return request.get('/zgyb.video/lists', data)
}

// 商品详情 
export function searchdetail(data) {
  	return request.get('/zgyb.search/detail', data)
}

// 二级分类 
export function indexsecond(data) {
  	return request.get('/zgyb.index/second', data)
}

// 筛选列表
export function indexlists(data) {
  	return request.get('/zgyb.index/lists', data)
}
// 筛选  
export function accesstypec(data) {
  	return request.get('/access/typec', data)
}

// 基础配置 
export function indexconfig(data) {
  	return request.get('/index/config', data)
}
export function accesslists(data) {
  	return request.get('/access/lists', data)
}



// 文件上传 
export function uploadFile(data) {
	console.log(data);
	return request.upload('/common/upload', data)
}